﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PlayerTest.Player.Event
{
    public class UserEventArgs : EventArgs
    {
        public enum eventtype { LOGIN, LOGOUT, ERROR, JOIN };
        private String message;
        private bool result;
        private eventtype event_type;

        public UserEventArgs(eventtype type)
        {
            this.event_type = type;
            message = "";
        }

        public String Message
        {
            get { return message; }
            set { message = value; }
        }
        public bool Result
        {
            get { return result; }
            set { result = value; }
        }
        public eventtype EventType
        {
            get { return event_type; }
            set { event_type = value; }
        }
    }

    public delegate void UserEventHandler(object sender, UserEventArgs e);
}
